package controller;

import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * @author HLF
 * @date 2022/6/6 11:43
 */
@RestController
public class ElasticSearchController {

    @Resource
    private RestHighLevelClient restHighLevelClient;


    @GetMapping("/test01")
    public String test01(HttpSession session) {
        return restHighLevelClient.toString();
    }
}
